<template>
  <view class="p-4">
    <web-view :src="contentObj.frameUrl"></web-view>
  </view>
</template>

<script>
	import * as articleApi from '@/interface/junchuang/article.js'
	import NavHeader from '@/components/nav_header.vue'
	export default {
		components: {
			NavHeader
		},
		data() {
			const v = this
			return {
				id: '',
				code: '',
				contentObj: {
					title: '',
          frameUrl: '',
					content: '',
					publishTime: '',
					summary: ''
				},
				titleObj: {
					park_dynamics_news: '园区动态',
					policy_adv: '活动咨询',
					policy_support: '政策支持',
					charity_report: '公益报告',
					company_regist: '企业注册',
					business_services: '工商服务',
					intellectual_property_right: '知识产权',
					about_us: v.$config.sub_app_name,
					rospective_analysis: '前景分析',
					team_service: '团队服务',
					common_problem: '常见问题',

					military_style: '园区风采',
					home_banner: '热门资讯',
				}
			}
		},
		onLoad(e) {
			if (e.id) this.id = e.id
			if (e.code) this.code = e.code
		},
		onShow() {
      this.$util.openShare();
			const v = this
			articleApi.getArticleDetail({
				articleId: v.id,
				columnCode: v.code
			}).then(res=>{
				if (res.success) {
					Object.assign(v.contentObj, res.data)
				}
			})
		},
		methods: {
		}
	}
</script>

<style>

</style>
